package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.system.domain.JiajiaWorkerJiedan;
import com.ruoyi.system.mapper.JiajiaWorkerJiedanMapper;
import com.ruoyi.system.service.IJiajiaWorkerJiedanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 接单状态Service业务层处理
 * 
 * @author knd
 * @date 2021-10-19
 */
@Service
public class JiajiaWorkerJiedanServiceImpl implements IJiajiaWorkerJiedanService
{
    @Autowired
    private JiajiaWorkerJiedanMapper jiajiaWorkerJiedanMapper;

    /**
     * 查询接单状态
     * 
     * @param id 接单状态主键
     * @return 接单状态
     */
    @Override
    public JiajiaWorkerJiedan selectJiajiaWorkerJiedanById(Long id)
    {
        return jiajiaWorkerJiedanMapper.selectJiajiaWorkerJiedanById(id);
    }

    /**
     * 查询接单状态列表
     * 
     * @param jiajiaWorkerJiedan 接单状态
     * @return 接单状态
     */
    @Override
    public List<JiajiaWorkerJiedan> selectJiajiaWorkerJiedanList(JiajiaWorkerJiedan jiajiaWorkerJiedan)
    {
        return jiajiaWorkerJiedanMapper.selectJiajiaWorkerJiedanList(jiajiaWorkerJiedan);
    }

    /**
     * 新增接单状态
     * 
     * @param jiajiaWorkerJiedan 接单状态
     * @return 结果
     */
    @Override
    public int insertJiajiaWorkerJiedan(JiajiaWorkerJiedan jiajiaWorkerJiedan)
    {
        return jiajiaWorkerJiedanMapper.insertJiajiaWorkerJiedan(jiajiaWorkerJiedan);
    }

    /**
     * 修改接单状态
     * 
     * @param jiajiaWorkerJiedan 接单状态
     * @return 结果
     */
    @Override
    public int updateJiajiaWorkerJiedan(JiajiaWorkerJiedan jiajiaWorkerJiedan)
    {
        return jiajiaWorkerJiedanMapper.updateJiajiaWorkerJiedan(jiajiaWorkerJiedan);
    }

    /**
     * 批量删除接单状态
     * 
     * @param ids 需要删除的接单状态主键
     * @return 结果
     */
    @Override
    public int deleteJiajiaWorkerJiedanByIds(String ids)
    {
        return jiajiaWorkerJiedanMapper.deleteJiajiaWorkerJiedanByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除接单状态信息
     * 
     * @param id 接单状态主键
     * @return 结果
     */
    @Override
    public int deleteJiajiaWorkerJiedanById(Long id)
    {
        return jiajiaWorkerJiedanMapper.deleteJiajiaWorkerJiedanById(id);
    }
}
